<?php

namespace app\common\validate;


class InventoryValidate extends BaseValidate
{
    protected $rule = [
        'material_number' => 'isNotEmpty',
        'barcode' => 'isNotEmpty'
    ];
    
    protected $message = [
        'material_number' => '物料编码参数不能为空',
        'barcode' => '条码参数不能为空'
    ];

    protected $scene = [
        'material_number' => 'material_number',
        'materialInventory' => ['material_number','barcode']
    ];
}
